package com.ybg.report.row.service;
import org.springframework.stereotype.Repository;
import org.springframework.beans.factory.annotation.Autowired;
import com.ybg.report.row.dao.RowDao;

import com.ybg.report.row.domain.RowVO;
import com.ybg.report.row.qvo.RowQuery;
import java.util.List;

import com.ybg.base.jdbc.BaseMap;
import com.ybg.base.util.Page;

/**
 * 
 * 
 * @author Deament
 * @email 591518884@qq.com
 * @date 2018-02-21
 */

@Repository
public class RowServiceImpl implements RowService {
	@Autowired
	private RowDao rowDao;
	
	@Override	
	public RowVO save(RowVO bean) throws Exception{
	return rowDao.save(bean);
	
	}
	
	@Override
	public	void update(BaseMap<String, Object> updatemap, BaseMap<String, Object> wheremap){
		rowDao.update(updatemap,wheremap);
	}
	
	
	@Override
	public	Page list(Page page,RowQuery qvo)throws Exception{
		return rowDao.list(page,qvo);
	}
	
	@Override
	public	List<RowVO> list(RowQuery qvo) throws Exception{
		return rowDao.list(qvo);
	}
   @Override
	public void remove(BaseMap<String, Object> wheremap){
		rowDao.remove(wheremap);
	}
   @Override
	public RowVO get(String id){
		return 	rowDao.get(id);
	}
}
